import {
  configureStore
} from "@reduxjs/toolkit";

// configureStore() 调用这个方法传配置对象,自动带中间件合并reducer 

// 默认暴露  countReducer 是起的别名
import countReducer from "./slice/countSlice"


 const store =configureStore({
  // 可能有多个 reducer  给它起个名字
  reducer:{
    count:countReducer
  }
})


export default store